import 'package:flutter/material.dart';

class CityInfo extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => new CityInfoState();
}

class CityInfoState extends State<CityInfo> {
  @override
  Widget build(BuildContext context) {
    return new Container(
      padding: const EdgeInsets.all(8.0),
      child: new Column(
        children: [
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('城市名称'),
                flex: 2,
              ),
              Expanded(
                child: Text('乌鲁木齐'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('当前时间'),
                flex: 2,
              ),
              Expanded(
                child: Text('2019-03-13 17:47'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('时辰'),
                flex: 2,
              ),
              Expanded(
                child: Text('申'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('经络'),
                flex: 2,
              ),
              Expanded(
                child: Text('膀胱'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('正午时间'),
                flex: 2,
              ),
              Expanded(
                child: Text('2019-03-13 17:47'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: new IconButton(icon: new Icon(Icons.save), onPressed: null),
                flex: 5,
              ),
              Expanded(
                child: new IconButton(icon: new Icon(Icons.delete), onPressed: null),
                flex: 5,
              ),
            ],
          ),
        ],
      ),
    );
  }
}
